#!/usr/bin/env bash

sudo dnf config-manager --set-enabled crb
sudo dnf -y install epel-release
sudo sed -e 's|^metalink=|#metalink=|g' \
	-e 's|^#baseurl=https\?://download.fedoraproject.org/pub/epel/|baseurl=https://mirrors.ustc.edu.cn/epel/|g' \
	-e 's|^#baseurl=https\?://download.example/pub/epel/|baseurl=https://mirrors.ustc.edu.cn/epel/|g' \
	-i.bak \
	/etc/yum.repos.d/epel{,-testing}.repo
sudo dnf config-manager --set-disable epel-cisco-openh264
